<UserControl x:Class="JounceSilverlightDemo.MainPage"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:Regions="clr-namespace:Jounce.Regions;assembly=Jounce" 
             xmlns:Services="clr-namespace:Jounce.Framework.Services;assembly=Jounce" 
             xmlns:ViewModels="clr-namespace:JounceSilverlightDemo.ViewModels" 
             xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" 
             mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="600">
    <!--xmlns:Services="clr-namespace:Jounce.Framework.Services;assembly=Jounce.Framework"-->

    <!--d:DataContext="{d:DesignInstance ViewModels:MainViewModel, IsDesignTimeCreatable=True}"-->
    <Grid x:Name="LayoutRoot" Background="White">
        <Grid.RowDefinitions>
            <RowDefinition Height="40" />
            <RowDefinition Height="520" />
            <RowDefinition Height="40" />
        </Grid.RowDefinitions>

        <!--<Grid Name="grdLogin" Grid.Row="0" Height="100" Width="500" HorizontalAlignment="Stretch" VerticalAlignment="Center" >
            <Grid.RowDefinitions>
                <RowDefinition />
                <RowDefinition />
                <RowDefinition />
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="200" />
                <ColumnDefinition />
            </Grid.ColumnDefinitions>

            <TextBlock Name="lblUserName" Text="User name : " Grid.Row="0" Grid.Column="0" 
                       HorizontalAlignment="Right" VerticalAlignment="Center" CharacterSpacing="20" />
            <TextBox Name="txtUserName" Grid.Row="0" Grid.Column="1" Margin="5" 
                     HorizontalAlignment="Stretch" VerticalAlignment="Center" 
                     Text="{Binding UserName, Mode=TwoWay}" />
            <TextBlock Name="lblUserPswd" Text="Password : " Grid.Row="1" Grid.Column="0" 
                       HorizontalAlignment="Right" VerticalAlignment="Center" CharacterSpacing="20" />
            <!- - Ref: http://wpftutorial.net/PasswordBox.html - ->
            <PasswordBox Name="txtUserPswd" Grid.Row="1" Grid.Column="1" Margin="5" 
                         HorizontalAlignment="Stretch" VerticalAlignment="Center" CharacterSpacing="20" 
                         Password="{Binding UserPassword, Mode=TwoWay}" PasswordChar="$" />
            <Button Name="btnOK" Grid.Row="2" Grid.Column="1" Margin="5" Content="OK" 
                    HorizontalAlignment="Right" VerticalAlignment="Center" Width="100" 
                    Command="{Binding LoginCommand}" IsEnabled="{Binding IsLoginAllowed}" />
        </Grid>-->

        <ContentControl Name="contHeader" Grid.Row="0" 
                        VerticalAlignment="Stretch" HorizontalAlignment="Stretch" 
                        HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" 
                        Regions:ExportAsRegion.RegionName="HeaderRegion">
        </ContentControl>
        <ContentControl Name="contBody" Grid.Row="1" 
                        VerticalAlignment="Stretch" HorizontalAlignment="Stretch" 
                        HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" 
                        Regions:ExportAsRegion.RegionName="MainContentRegion">
        </ContentControl>
        <ContentControl Name="contFooter" Grid.Row="2" 
                        VerticalAlignment="Stretch" HorizontalAlignment="Stretch" 
                        HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" 
                        Regions:ExportAsRegion.RegionName="FooterRegion">
        </ContentControl>
    </Grid>
</UserControl>
